The Document Object Model and JavaScript > How JavaScript works in extensions > Running scripts at startup or shutdown |
![]() ![]() ![]() |
Running scripts at startup or shutdown
In Dreamweaver 4, if you place a command file in the Configuration/Startup folder, the command runs as Dreamweaver is starting up. Startup commands load before the menus.xml file, before the files in the ThirdPartyTags folder, and before any other commands, objects, behaviors, inspectors, floating panels, or translators. Thus, you can use startup commands to modify the menus.xml file or other extension files. You can also show warnings, prompt the user for information or call dreamweaver.runCommand()
, but you cannot call a command that expects a valid DOM.
Similarly, if you place a command file in the Configuration/Shutdown folder, the command will run as Dreamweaver is shutting down. You can call the dreamweaver.runCommand()
from shutdown commands, show warnings, or prompt the user for information, but you cannot stop the shutdown process.
For more information about commands, see What are commands?
![]() ![]() ![]() |